import { request } from '@/utils/hsj/service/index'
import { parseStrEmpty } from '@/utils/ruoyi'

// 查询项目列表
export function listProjectInfo(query) {
  return request({
    url: '/system/project/list',
    method: 'get',
    params: query,
  })
}

// 查询项目详细
export function getProjectInfo(projectId) {
  return request({
    url: '/system/project/' + parseStrEmpty(projectId),
    method: 'get',
  })
}

// 查询项目详细
export function getProjectBasicInfo(projectId) {
  return request({
    url: '/system/project/info/' + parseStrEmpty(projectId),
    method: 'get',
  })
}

// 新增项目
export function addProjectInfo(data) {
  return request({
    url: '/system/project',
    method: 'post',
    data: data,
  })
}

// 修改项目
export function updateProjectInfo(data) {
  return request({
    url: '/system/project',
    method: 'put',
    data: data,
  })
}

// 删除项目
export function delProjectInfo(projectId) {
  return request({
    url: '/system/project/' + projectId,
    method: 'delete',
  })
}


